﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="CandidateBriefDetailsRL.aspx.cs" Inherits="Admin_CandidateBriefDetailsRL" %>

<%@ Register Assembly="TimePicker" Namespace="MKB.TimePicker" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        #ContentPlaceHolder1_mainMenu {
          width: 98%;
            margin-left:10px;
            height: 30px;
            border: 1px solid #cccccc;
            background-color: #cccccc;
            font-family: Verdana,Arial,sans-serif;
        }


            #ContentPlaceHolder1_mainMenu ul {
                height: 60px;
            }

            #ContentPlaceHolder1_mainMenu a.static {
                color: #777;
                font-size: 12px;
                background: #d5d1d1;
                height: 26px;
            }

                /*.static {
            font-size: 10px;
            color: #777;
        }*/

                #ContentPlaceHolder1_mainMenu a.static:hover {
                    background-color: #e6e6e6;
                    border: 1px solid #eee;
                    height: 26px;
                    text-align: center;
                    float: left !important;
                    line-height: 20px;
                }

        .RadioButtonWidthMale label {
            width: 45px;
            margin-left: 6px;
        }

        #ContentPlaceHolder1_mainMenu a.static {
            margin-left: 0px;
            border: 1px solid #eee;
            height: 26px;
            margin-top: 0px;
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            float: left !important;
            line-height: 25px;
        }
          .shadow{box-shadow: inset 0 0 25px #000000;
  border-radius: 6px;}

          

        #ContentPlaceHolder1_mainMenu > tbody
        {
             /*border: 1px solid #000;*/
        }
        /*#ContentPlaceHolder1_mainMenu > tbody > tr > td
        {
            border-right:1px solid #FFFFFF;
        }*/
        #ContentPlaceHolder1_mainMenu > tbody > tr > td > table
        {
             border:1px solid #FFFFFF;

            
        }
        #ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td > a
        {
            text-decoration:none;
            color:#5E6163;
        }
          /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td:hover
        {
            
            color:red;
        }*/
          #ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr:hover{
              background-color:#E6E6E6;
              text-decoration:none;
             
          }
          /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td > a:hover
        {
            
            color:red;
        }*/
        /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr
        {
            background-color:red;
            margin-right:-40%;
        }*/
          /*#ContentPlaceHolder1_mainMenu > tbody > tr > td > table > tbody > tr > td 
        {
            background-color:green;
            padding-right:-10%;
        }*/
    </style>
    <script type="text/javascript">

       

        function validateProposalFileSize() {
            var uploadControl = document.getElementById('<%= filProposal.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxProposalFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                //"Uploaded Picture size should not be greater than 5 MB.";
                uploadControl.value = "";
                return false;
            }
            else {
                lblSize.innerText = "";
                return true;
            }
        }

       

        function validateSummaryFileSize() {
            var uploadControl = document.getElementById('<%= fileContentAnalysis.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxSummaryFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                 //"Uploaded Picture size should not be greater than 5 MB.";
                 uploadControl.value = "";
                 return false;
             }
             else {
                 lblSize.innerText = "";
                 return true;
             }
         }
         function validatePastResearchFileSize() {
             var uploadControl = document.getElementById('<%= filePastResearch.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxPastResearchFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                 //"Uploaded Picture size should not be greater than 5 MB.";
                 uploadControl.value = "";
                 return false;
             }
             else {
                 lblSize.innerText = "";
                 return true;
             }
         }
         function validateMarketResearchFileSize() {
             var uploadControl = document.getElementById('<%= fileMRResearch.ClientID %>');
            var lblSize = document.getElementById('<%=lblMaxMarketResRepFileSize.ClientID %>');
            if (uploadControl.files[0].size > ('<%=ConfigurationManager.AppSettings["FileLimitSize"]%>')) {

                lblSize.innerText = '<%= ConfigurationManager.AppSettings["FileSize"]%>';
                 //"Uploaded Picture size should not be greater than 5 MB.";
                 uploadControl.value = "";
                 return false;
             }
             else {
                 lblSize.innerText = "";
                 return true;
             }
         }


        var WindowObjectReference; // global variable
        function onClickLink(strPath) {
            WindowObjectReference = window.open(strPath, "DescriptiveWindowName", "resizable=yes,scrollbars=yes,status=yes");

        }

        function onClickLinkProposal(strPathProDoc) {
            WindowObjectReference = window.open(strPathProDoc, "DescriptiveWindowName", "resizable=yes,scrollbars=yes,status=yes");

        }


        function confirmation() {
            var chkConfirmStatus, hdnCandidateStatus, hdnStageMode, hdnProposalStageMode, hdnCAStageMode, hdnMRStageMode;
            hdnCandidateStatus = document.getElementById("<%= hdnCandidateStatus.ClientID %>").value;
            hdnStageMode = document.getElementById("<%= hdnStageMode.ClientID %>").value;
            hdnProposalStageMode = document.getElementById("<%= hdnProposalStageMode.ClientID %>").value;
            hdnCAStageMode = document.getElementById("<%= hdnCAStageMode.ClientID %>").value;
            hdnMRStageMode = document.getElementById("<%= hdnMRStageMode.ClientID %>").value;

            if (hdnCandidateStatus == "22" && hdnStageMode == "1") {
                chkConfirmStatus = document.getElementById("<%= chkConfirm.ClientID %>");

                if (chkConfirmStatus.checked)
                {

                    //if (confirm('Are you sure you want to proceed next stage ?')) {
                    //    return true;
                    //}
                    //else {
                    //    return false;
                    //}

                }
                else {

                    alert("Please select confirmation to Proceed Next Stage");
                    return false;
                }
            }


            if (hdnCandidateStatus == "5" && hdnProposalStageMode == "1") {

                chkConfirmStatus = document.getElementById("<%= chkProposal.ClientID %>");

                if (chkConfirmStatus.checked) {

                    //if (confirm('Are you sure you want to proceed next stage ?')) {
                    //    return true;
                    //}
                    //else {
                    //    return false;
                    //}

                }
                else {

                    alert("Please select confirmation to Proceed Next Stage");
                    return false;
                }
            }

           
            if (hdnCandidateStatus == "6" && hdnCAStageMode == "1") {

                chkConfirmStatus = document.getElementById("<%= chkContentAnalysis.ClientID %>");

                if (chkConfirmStatus.checked) {


                    //if (confirm('Are you sure you want to proceed next stage ?')) {
                    //    return true;
                    //}
                    //else {
                    //    return false;
                    //}


                }
                else {

                    alert("Please select confirmation to Proceed Next Stage");
                    return false;
                }
            }


            if (hdnCandidateStatus == "8" && hdnMRStageMode == "1") {

                chkConfirmStatus = document.getElementById("<%= chkMRResearch.ClientID %>");

                if (chkConfirmStatus.checked) {


                    //if (confirm("Are you sure you want to submit the report ?")) {
                    //    return true;
                    //}
                    //else {
                    //    return false;
                    //}


                }
                else {

                    alert("Please select confirmation to submit the report");
                    return false;
                }
            }


        }
    </script>
    <table style="width: 100%;" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
        <tbody>
            <tr>
                <td style="height: 50px; vertical-align: top;" align="center">
                    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table style="width: 100%;" class="shadow" id="TABLE1" cellspacing="1" cellpadding="1" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <asp:Menu ID="mainMenu" runat="server" RenderingMode="List" Orientation="Horizontal" OnMenuItemClick="mainMenu_MenuItemClick">
                                                <Items>
                                                    <asp:MenuItem Value="0" Text="Brief Details"></asp:MenuItem>
                                                    <asp:MenuItem Value="1" Text="Proposal"></asp:MenuItem>
                                                    <asp:MenuItem Value="2" Text="Summary Report"></asp:MenuItem>
                                                    <asp:MenuItem Value="3" Text="Past Research"></asp:MenuItem>
                                                    <asp:MenuItem Value="4" Text="Market Research Report"></asp:MenuItem>
                                                    <asp:MenuItem Value="5" Text="Research Lead Questions"></asp:MenuItem>
                                                    <%--    <asp:MenuItem  Value="7" Text="Preview"></asp:MenuItem>--%>
                                                </Items>
                                                <StaticMenuItemStyle CssClass="menuItem" />
                                                <StaticMenuItemStyle CssClass="normalmenuItem" />
                                                <StaticSelectedStyle CssClass="selectedItem" />
                                                <StaticHoverStyle CssClass="hoverItem" />
                                            </asp:Menu>
                                            <%--Add a MultiView control to "contain" View controls which will serve as tab pages.--%>
                                            <asp:MultiView ID="mvwCandidateBriefDetails" runat="server">
                                                <%--Add View controls, one for each 'tab'.--%>
                                                <asp:View ID="vwTab1" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblBriefDetails" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>

                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Brief Details</h2>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;margin-left:25px;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;"><asp:TextBox ID="txtHideanBTitle" runat="server" Visible="false"></asp:TextBox></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" class="auto-style4">Brief Name
                                                                </td>
                                                                <td class="auto-style5">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style6" runat="server" id="tdBriefName"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief Description
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefDesc"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief Start Date
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefStartDt"></td>
                                                            </tr>
                                                            <tr id="trSpaceEndDate" runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trEndDate" runat="server" visible="false">
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Brief End Date
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="tdBriefEndDt"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left:12%;">
                                                                        <asp:GridView ID="grdBriefDocument" runat="server" AllowPaging="True" Width="85%" AutoGenerateColumns="False">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentName" HeaderText="&nbsp;Brief">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                               <%-- <asp:TemplateField HeaderText="">
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDownload" runat="server" Text="Download" OnClick="lnkDownload_Click"></asp:LinkButton>

                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField  ItemStyle-Width="10%">
                                                                                   <ItemTemplate>
                                                                                     <asp:HyperLink runat="server" NavigateUrl='<%# GetBriefDownload(Eval("DocumentName"))%>' text="Download"></asp:HyperLink>
                                                                                   </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                </asp:TemplateField>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDownload" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("BriefDocumentID") %>' OnClick = "lnkDownload_Click">Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                            </Columns>
                                                                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right;" class="auto-style4">Any questions for Regional Director?&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2;vertical-align: text-top;" valign="top">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td runat="server" id="td1">
                                                                    <asp:RadioButtonList ID="rbtQuestion" CssClass="RadioButtonWidthMale" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table" AutoPostBack="True" OnSelectedIndexChanged="rbtQuestion_SelectedIndexChanged">
                                                                        <asp:ListItem Value="YES">Yes</asp:ListItem>
                                                                        <asp:ListItem Value="NO">No</asp:ListItem>
                                                                    </asp:RadioButtonList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trQuestion" runat="server">
                                                                <td style="text-align: right;" class="auto-style4">Questions for Regional Director&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td style="text-align: right;" class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtQuestionAssessor" runat="server" TextMode="MultiLine" Height="99px" Width="430px"></asp:TextBox>
                                                                    &nbsp;<br /><asp:RequiredFieldValidator ID="reqQuestionAssessor" ValidationGroup="NextValidation" Display="Dynamic" ForeColor="red" ControlToValidate="txtQuestionAssessor" runat="server" ErrorMessage="Enter question for assessor"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regQuestionAssessor" Display="Dynamic" ValidationGroup="NextValidation" ForeColor="red" runat="server" ControlToValidate="txtQuestionAssessor" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>

                                                            <tr id="trQuestionSpace1" runat="server">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr id="trAssessorComments" runat="server">
                                                                <td style="text-align: right;" class="auto-style4">Regional Director Comments&nbsp;
                                                                </td>
                                                                <td style="text-align: right;" class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:TextBox ID="txtAssessorComments" runat="server" TextMode="MultiLine" Height="99px" Width="430px"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr id="trQuestionSpace2" runat="server">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top:3px;" class="auto-style4">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top:3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkConfirm" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab2" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblProposal" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Proposal</h2>
                                                                    </div>
                                                                  
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="vertical-align:top; padding-top:10px;">Upload Proposal Document&nbsp;<font color="red">*</font></td>
                                                                <td style="vertical-align:top; padding-top:10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9" style="vertical-align: text-top;">
                                                                    <asp:FileUpload ID="filProposal" runat="server" Width="220px" onchange="validateProposalFileSize();" />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxProposalFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstProposal" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstProposal_ServerValidate" ValidationGroup="ProposalValidate"></asp:CustomValidator>
                                                                    
                                                                    <label id="lblFileProposal" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnProposal" ValidationGroup="ProposalValidate" runat="server" SkinID="buttonSkin" Text="Upload" OnClick="btnProposal_Click" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr  id="trComment"  runat="server" visible="false">
                                                                <td align="right" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td align="left">
                                                                    <asp:TextBox ID="txtComments" TextMode="MultiLine" runat="server" Height="99px" Width="430px" MaxLength="500"></asp:TextBox>
                                                                    <br /><asp:RegularExpressionValidator ID="rgeComments" Display="Dynamic" ValidationGroup="ProposalValidate" ForeColor="red" runat="server" ControlToValidate="txtComments" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr id="trComment0"  runat="server" visible="false">
                                                                <td align="right" class="auto-style12">&nbsp;</td>
                                                                <td class="auto-style8">&nbsp;</td>
                                                                <td class="auto-style9">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right">&nbsp;</td>
                                                                <td>&nbsp;</td>
                                                                <td align="left">
                                                                    &nbsp;<asp:Button ID="btnCancelProposal" runat="server" CausesValidation="false" OnClick="btnCancelProposal_Click" SkinID="buttonSkin" Text="Clear" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <asp:CustomValidator ID="cstGvProposalDocument" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGvProposalDocument_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left:12%;">
                                                                        <asp:GridView ID="gvProposalDocument" runat="server" PageSize="10" AllowPaging="true" 
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvProposalDocument_RowDataBound" OnRowDeleting="gvProposalDocument_RowDeleting"
                                                                            Width="85%" AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Proposal Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="40%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                 </asp:TemplateField>
<%--                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField  ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                            <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top:3px;" class="auto-style4">Please confirm for proceeding to the next step &nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top:3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkProposal" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab3" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblContentAnalysis" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Summary Report</h2>
                                                                    </div>
                                                                  
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="vertical-align:top; padding-top:10px;">Upload Full Report&nbsp;<font color="red">*</font></td>
                                                                <td style="vertical-align:top; padding-top:10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9" style="vertical-align: text-top; ">
                                                                    <asp:FileUpload ID="fileContentAnalysis" runat="server" onchange="validateSummaryFileSize();"/>
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxSummaryFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstContentAnalysis" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstContentAnalysis_ServerValidate" ValidationGroup="ContentAnalysisValidate"></asp:CustomValidator>
                                                                    
                                                                    <label id="lblContentAnalysis" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnContentAnalysis" runat="server" SkinID="buttonSkin" ValidationGroup="ContentAnalysisValidate" Text="Upload" OnClick="btnContentAnalysis_Click" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr  id="trComment4"  runat="server" visible="false">
                                                                <td align="right" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9">
                                                                    <asp:TextBox ID="txtContentAnalysis" runat="server" TextMode="MultiLine" Height="99px" Width="430px" MaxLength="500"></asp:TextBox>
                                                                    <br /><asp:RegularExpressionValidator ID="rgeContentAnalysis" Display="Dynamic" ValidationGroup="ContentAnalysisValidate" ForeColor="red" runat="server" ControlToValidate="txtContentAnalysis" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr  id="trComment5"  runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    &nbsp;<asp:Button ID="btnCancelContentAnalysis" runat="server" CausesValidation="false" OnClick="btnCancelContentAnalysis_Click" SkinID="buttonSkin" Text="Clear" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                             <tr>
                                                                <td colspan="3"  align="center">
                                                                    <asp:CustomValidator ID="csvContentAnalysis" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="csvContentAnalysis_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left:12%;">
                                                                        <asp:GridView ID="gvContentAnalysis" runat="server" PageSize="10" AllowPaging="true"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvContentAnalysis_RowDataBound" OnRowDeleting="gvContentAnalysis_RowDeleting"
                                                                             Width="85%" AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Summary Report Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="40%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField>
                                                                                 <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                 </asp:TemplateField>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField  ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                            <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top:3px;" class="auto-style4">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top:3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkContentAnalysis" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab4" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblPastResearch" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Past Research</h2>
                                                                    </div>
                                                                  
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%;">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%;">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" class="auto-style12" style="vertical-align:top; padding-top:10px;">Upload Past Research Document&nbsp;<font color="red">*</font></td>
                                                                <td class="auto-style8" style="vertical-align:top; padding-top:10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9" style="vertical-align: text-top;">
                                                                    <asp:FileUpload ID="filePastResearch" runat="server" onchange="validatePastResearchFileSize();"/>
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxPastResearchFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstPastResearch" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstPastResearch_ServerValidate" ValidationGroup="PASTRESEARCHVALIDATE"></asp:CustomValidator>
                                                                    
                                                                    <label id="lblPastResearch" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnAddPastResearch" ValidationGroup="PASTRESEARCHVALIDATE" runat="server" OnClick="btnAddPastResearch_Click" SkinID="buttonSkin" Text="Upload" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr  id="trComment6"  runat="server" visible="false">
                                                                <td align="right" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9">
                                                                    <asp:TextBox ID="txtPastResearch" runat="server" TextMode="MultiLine" Height="99px" Width="430px" MaxLength="500"></asp:TextBox>
                                                                    <br /><asp:RegularExpressionValidator ID="rgePastResearch" Display="Dynamic" ValidationGroup="PASTRESEARCHVALIDATE" ForeColor="red" runat="server" ControlToValidate="txtPastResearch" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr  id="trComment7"  runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    &nbsp;<asp:Button ID="btnCancelPastResearch" CausesValidation="false" OnClick="btnCancelPastResearch_Click" runat="server" SkinID="buttonSkin" Text="Clear" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left:12%;">
                                                                        <asp:GridView ID="gvPastResearch" runat="server" PageSize="10" AllowPaging="true"
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvPastResearch_RowDataBound" OnRowDeleting="gvPastResearch_RowDeleting"
                                                                             Width="85%" AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;Past Research Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="30%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                               <%-- <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                 </asp:TemplateField>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField  ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                            <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>

                                                                            </Columns>
                                                                             <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#E2DED6" ForeColor="blue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#CCCCCC" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab5" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblMarketResearch" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 10px">&nbsp;</td>
                                                                <td class="auto-style3">&nbsp;</td>
                                                                <td style="width: 54%; height: 10px">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Market Research Report</h2>
                                                                    </div>
                                                                    
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" class="auto-style12" style="vertical-align:top; padding-top:10px;">Upload Market Research Report<font color="red">*</font></td>
                                                                <td class="auto-style8" style="vertical-align:top; padding-top:10px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9" style="vertical-align: text-top;">
                                                                    <asp:FileUpload ID="fileMRResearch" runat="server" onchange="validateMarketResearchFileSize();" />
                                                                    &nbsp;<asp:Label runat="server" ID="lblMaxMarketResRepFileSize" Text="" ForeColor="Red" Visible="true" ClientIDMode="Static"></asp:Label>
                                                                    <asp:CustomValidator ID="cstMRResearch" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstMRResearch_ServerValidate" ValidationGroup="MRRESEARCHVALIDATE"></asp:CustomValidator>
                                                                   
                                                                    <label id="lblMRResearch" runat="server" style="color: black;">
                                                                    </label>
                                                                    <br />
                                                                    <asp:Button ID="btnAddMRResearch" ValidationGroup="MRRESEARCHVALIDATE" runat="server" OnClick="btnAddMRResearch_Click" SkinID="buttonSkin" Text="Upload" />
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr  id="trComment8"  runat="server" visible="false">
                                                                <td align="right" class="auto-style12">Comments about the file </td>
                                                                <td class="auto-style8">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td class="auto-style9">
                                                                    <asp:TextBox ID="txtMRResearch" TextMode="MultiLine" runat="server" Height="99px" Width="430px" MaxLength="500"></asp:TextBox><br /><asp:RegularExpressionValidator ID="regMRResearch" Display="Dynamic" ValidationGroup="MRRESEARCHVALIDATE" ForeColor="red" runat="server" ControlToValidate="txtMRResearch" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr  id="trComment9"  runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr runat="server" visible="false">
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    &nbsp;<asp:Button ID="btnCancelMRResearch" CausesValidation="false" OnClick="btnCancelMRResearch_Click" runat="server" SkinID="buttonSkin" Text="Clear" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                             <tr>
                                                                <td colspan="3"  align="center">
                                                                    <asp:CustomValidator ID="cstGrdMRResearch" runat="server" Display="Dynamic" ForeColor="red" OnServerValidate="cstGrdMRResearch_ServerValidate" ValidationGroup="NextValidation"></asp:CustomValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">
                                                                    <div class="grd_table" style="overflow-x: auto; margin-left:12%;">
                                                                        <asp:GridView ID="gvMRResearch" runat="server" PageSize="10" AllowPaging="true" 
                                                                            DataKeyNames="CandidateBriefDocumentID" OnRowDataBound="gvMRResearch_RowDataBound" OnRowDeleting="gvMRResearch_RowDeleting"
                                                                            Width="85%" AutoGenerateColumns="false">
                                                                            <Columns>
                                                                                <asp:BoundField DataField="DocumentPath" HeaderText="&nbsp;MR Report Document">
                                                                                    <ItemStyle Width="20%" HorizontalAlign="Left" VerticalAlign="Top" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentComment" InsertVisible="true" Visible="false" HeaderText=" Comments ">
                                                                                    <ItemStyle Width="40%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>

                                                                                <asp:BoundField DataField="DocumentUpdateDate" HeaderText="&nbsp;Document Date ">
                                                                                    <ItemStyle Width="15%" HorizontalAlign="Left" />
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkDelete" runat="server" CausesValidation="false" CommandArgument='<%# Eval("CandidateBriefDocumentID") %>' CommandName="Delete">Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="10%" />
                                                                                 </asp:TemplateField>
                                                                               <%-- <asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Delete</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <%--<asp:TemplateField>
                                                                                    <ItemTemplate>
                                                                                        <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit"
                                                                                            CommandArgument='<%# Eval("CandidateBriefDocumentID") %>'>Download</asp:LinkButton>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle Width="15%" />
                                                                                </asp:TemplateField>--%>
                                                                                <asp:TemplateField  ItemStyle-Width="10%">
                                                                                    <ItemTemplate>
                                                                                            <asp:HyperLink runat="server" NavigateUrl='<%# GetProposalBriefDocumentDownload(Eval("DocumentPath"))%>' text="Download"></asp:HyperLink>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="vertical-align: text-top; text-align: right; padding-top:3px;" class="auto-style4">Please confirm for proceeding to the next step&nbsp;<font color="red">*</font>
                                                                </td>
                                                                <td class="auto-style2" style="vertical-align: text-top; padding-top:3px;">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td>
                                                                    <asp:CheckBox ID="chkMRResearch" Text="" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" style="width: 45%; height: 18px"></td>
                                                                <td class="auto-style3"></td>
                                                                <td style="width: 54%; height: 18px"></td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center"></td>
                                                            </tr>

                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                                <asp:View ID="vwTab7" runat="server">
                                                    <table style="width: 95%; margin-top: 10px; margin-left:25px;" id="tblMoreDetails" cellspacing="1" cellpadding="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: left">
                                                                    <div class="templeteheder">
                                                                        <h2>Research Lead Questions</h2>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 35%; text-align: right;" class="auto-style10">Questions from Research Lead?
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%; text-align: left;">
                                                                    <asp:TextBox ID="txtQuestionMore" TextMode="MultiLine" Enabled="false" runat="server" Width="500px" MaxLength="500"></asp:TextBox>
                                                                    <br /><asp:RegularExpressionValidator ID="revQuestionMore" Display="Dynamic" ValidationGroup="MOREDETAIL" ForeColor="red" runat="server" ControlToValidate="txtQuestionMore" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>

                                                                </td>
                                                            </tr>



                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 35%; text-align: right;" class="auto-style10">Your Comments
                                                                </td>
                                                                <td class="auto-style2">&nbsp;&nbsp;:&nbsp;&nbsp;</td>
                                                                <td style="width: 64%; text-align: left;">
                                                                    <asp:TextBox ID="txtCommentsMore" TextMode="MultiLine" runat="server" Width="500px" MaxLength="500"></asp:TextBox><br /><asp:RequiredFieldValidator ID="reqMoreComment" ValidationGroup="MORECOMMENT" Display="Dynamic" ForeColor="red" ControlToValidate="txtCommentsMore" runat="server" ErrorMessage="Enter your comments."></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regExpValMoreComment" Display="Dynamic" ValidationGroup="MORECOMMENT" ForeColor="red" runat="server" ControlToValidate="txtCommentsMore" ValidationExpression="^[\s\S]{0,500}$" ErrorMessage="Maximum 500 characters allow."></asp:RegularExpressionValidator>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="3" style="height: 10px; text-align: center">&nbsp;<asp:Button ID="btnMoreCommentAdd" ValidationGroup="MORECOMMENT" runat="server" OnClick="btnMoreCommentAdd_Click" SkinID="buttonSkin" Text="Add" />&nbsp;<asp:Button ID="btnMoreCommentCancel" runat="server" SkinID="buttonSkin" Text="Cancel" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </asp:View>
                                            </asp:MultiView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <asp:Button ID="btnPervious" runat="server" Text="Previous" OnClick="btnPervious_Click" />&nbsp;&nbsp;<asp:Button ID="btnNext" runat="server" Text="Next" ValidationGroup="NextValidation" OnClientClick="return confirmation();" OnClick="btnNext_Click" />
                                    </tr>
                                    <tr style="height:40px;">
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                    </tr>
                                    <asp:HiddenField runat="server" ID="hdnCandidateBriefId" />
                                    <asp:HiddenField runat="server" ID="hdnCandidateStatus" />
                                    <asp:HiddenField ID="hdnStageMode" runat="server" />
                                    <asp:HiddenField ID="hdnProposalStageMode" runat="server" />
                                    <asp:HiddenField ID="hdnCAStageMode" runat="server" />
                                    <asp:HiddenField ID="hdnMRStageMode" runat="server" />
                                    <asp:HiddenField ID="hdnCandidateID" EnableViewState="true" runat="server" />
                                    <asp:HiddenField ID="hdnCandidateStageComplted" EnableViewState="true" runat="server" />
                                    <asp:HiddenField ID="hdnBriefID" EnableViewState="true" runat="server" />
                                    <asp:HiddenField ID="hdnMenuMoreDetail" EnableViewState="true" runat="server" />
                                    <asp:HiddenField ID="hdnCandidateQueryID" EnableViewState="true" runat="server" />
                                </tbody>
                            </table>
                        </ContentTemplate>
                        <Triggers>
                            <asp:PostBackTrigger ControlID="btnProposal" />
                            <asp:PostBackTrigger ControlID="btnContentAnalysis" />
                            <asp:PostBackTrigger ControlID="btnAddPastResearch" />
                            <asp:PostBackTrigger ControlID="btnAddMRResearch" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
